package com.lichuang.dedao.curriculum.service;

import com.lichuang.dedao.curriculum.entity.Curriculum;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author xiaosong
 * @since 2019-07-15
 */
public interface ICurriculumService extends IService<Curriculum> {

    /**
     * 根据id更改课程状态
     * @param id
     * @return
     */
    Integer updateCurriculumStatusById(@Param("id")Integer id, @Param("status")Integer status);

    /**
     * 根据时间获取课程
     * @return
     */
    List<Curriculum> getNewestCurriculum();
}
